<div class="row">
 <small>
 <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
 
  <div class="span9">
    <div class="clearfix txtleft search span9" style="background-color:#f8f8f8; padding:10px; margin:10px 0px;"> 
	机构：<*$stuone.groupname*>&nbsp;&nbsp;校园：<*$stuone.schoolname*>
	</div>	    
    <*if $smartcard|@count neq 0*>  
      <form action="/<*$controller*>/indexlist/time/<*$time*>/students/<*$students*>" method="post" enctype="multipart/form-data"  id="form1" >
       <table class="table table-condensed table-bordered table-hover span9"> 
        <tr class="success">  
           <td><strong>序号</strong></td>
           <td><strong>所属班级</strong></td>
           <td><strong>学生</strong></td>
           <td><strong>家长手机</strong></td>
           <td><strong>卡号</strong></td>
           <td><strong>开卡时间</strong></td>
           <td><strong>操作</strong></td>
        </tr>
      		<*foreach from=$smartcard item=item key =key name=foo*> 
            <tr>
            <*eval var=$item.studentid assign="studentid"*>
               <td class="span1"><*$smarty.foreach.foo.iteration*></td> 
               <td class="span1"><*$student.$studentid.classname*></td> 
               <td class="span1"><*$student.$studentid.cnname*></td> 
               <td class="span1"><*$student.$studentid.mobile*></td> 
               <td class="span1"><*$item.cardid*></td> 
               <td class="span1"><*$item.addtime*></td> 
               <td class="span1"><*if $item.isdelete eq 0 && $item.inuse eq 1*><a href="javascript:deleteit('<*$item.cardid*>')" > 注销</i></a><*/if*></td> 
            </tr>
            <*/foreach*>
			<tr>
			<td colspan="7">
            <input type="submit" class="btn btn-success" value="导出" />&nbsp;&nbsp;&nbsp;<button type="button" class="btn " onclick="history.back()">返回</button></td></tr>
			</tr>
      </table>
    </form> 
      <*else*>  
             
        <*/if*>  
    </div>
    </small> 
     
<!-- <script type="text/javascript" src="/js/prototype.js"></script>  -->
<script type="text/javascript"> 
function deleteit(adid)
{
  if(confirm("注销将不能恢复")){
   window.location='/<*$controller*>/delete/cid/'+adid;
  }
}
</script>
  
 </div> 